file(GLOB  FIELD_SRC_FILES
    "*.f90"
)

set(sources-field-fpp 
)
fypp_preprocess("${sources-field-fpp}" sources-field-postfpp)

include_directories(${PROJECT_SOURCE_DIR}/include)

set(FIELD_SRC_FILES ${FIELD_SRC_FILES} CACHE STRING INTERNAL)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib/field)
set(CMAKE_Fortran_MODULE_DIRECTORY ${PROJECT_SOURCE_DIR}/include/field)
add_library(field ${FIELD_SRC_FILES} ${sources-field-postfpp})
target_link_libraries(field PkgConfig::PETSC PkgConfig::fortran_stdlib petsc_wrapper eos)
target_include_directories(field PUBLIC ${PROJECT_SOURCE_DIR}/include/field)
